import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/jhclothing";

// 查询服饰出库列表
export function listClothingOutbound(query) {
  return request({
    url: '/outbound/clothing/list',
    method: 'get',
    params: query
  })
}

// 查询服饰出库详细
export function getClothingOutbound(clothingOutboundId) {
  return request({
    url: '/outbound/clothing/' + parseStrEmpty(clothingOutboundId),
    method: 'get'
  })
}

// 新增服饰出库
export function addClothingOutbound(data) {
  return request({
    url: '/outbound/clothing',
    method: 'post',
    data: data
  })
}

// 修改服饰出库
export function updateClothingOutbound(data) {
  return request({
    url: '/outbound/clothing',
    method: 'put',
    data: data
  })
}
// 删除服饰出库
export function delClothingOutbound(clothingOutboundId) {
  return request({
    url: '/outbound/clothing/' + clothingOutboundId,
    method: 'delete'
  })
}
